home *** CD-ROM | disk | FTP | other *** search
- Path: news.Stanford.EDU!not-for-mail
- From: magical@leland.Stanford.EDU (Alexander Y. Lin)
- Newsgroups: comp.lang.c
- Subject: How to RUN a program in Unix?
- Date: 4 Jan 1996 23:04:57 -0800
- Organization: Stanford University
- Message-ID: <4ciiip$150@elaine37.Stanford.EDU>
- NNTP-Posting-Host: elaine37.stanford.edu
-
- Argh... you guys are my last hope. I am learning to use gcc and makefiles
- and finished an assignment where the makefile was already created for
- me. It took the following files(*):
-
- prog.c prog.h progtest.c
-
- and additionally created these:
-
- prog.o progtest.o progtest*
-
- where progtest.c was a program to test the functions in the module prog.
-
- Now I'm trying to run the progtest program to see if it works! But I can't
- for my life figure out how! I tried to gdb progtest and then type run, but
- it just says "program exited normally" without the output. (progtest
- prints a lits of words to stdout.)
-
- So my question is, how to run a gcc/makefile compiled program? Also,
- I understand the .o are object files, but what is progtest*?
-
- Thanks for any info. E-mail would be most appreciated, but posting is
- fine too.
-
- magical@leland.stanford.edu
-